package com.switchd;

import java.util.HashMap;

public class SwitchDemo {
	public static void main(String[] args) {
			switch2(2);
	}

	static void switch1() {
		int i = 1;
		int a = 110_112;
		System.out.println(a);
		switch (a) {
		case 1:
			System.out.println(1);
		case 2:
			if (i == 2) {
				System.out.println(2);
			} else {
				System.out.println(1);
			}
			break;

		default:
			System.out.println("default");
			break;
		}
	}

	static void switch2(int index) {
		switch (index) {
		case 1:
			System.out.println(index);
			break;
		case 2:
			System.out.println(index);
			return ;
		case 3:
			System.out.println(index);
			break;
			
		}
		System.out.println("end");

	}
}
